Skip to content

Conversation

@maradini77
Copy link

Fixed size_of_dir_entry to recursively calculate the size of directories. Previously, the function only returned the metadata size of directory entries (typically a few KB), completely ignoring files within subdirectories. This caused size_of_dir to return incorrect sizes for any directory tree with nested folders.

The fix checks if an entry is a directory and recursively calls size_of_dir to sum up all file sizes within the directory tree.

@cla-assistant
Copy link

cla-assistant bot commented Nov 21, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant